package com.lightdz.tshirtdz.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by Administrator on 2019/1/17.
 */
@Controller
@RequestMapping(value = "/html")
public class HtmlController {

    /**
     *  在浏览器输入http://localhost:9090/tshirt/html/index就可以看到页面
     */
    @GetMapping(value ="/index")
    public String index(){
        return "index";//这是页面的名字
    }
    /**
     *  在浏览器输入http://localhost:9090/tshirt/html/imageUp
     */
    @GetMapping(value ="/imageUp")
    public String ImageUpLoad(){
        return "ImageUpLoad";//这是页面的名字
    }

}
